import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity("apartment_agent", { schema: "cbox" })
export class ApartmentAgent {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("varchar", { name: "display_name", nullable: true, length: 32 })
  displayName: string | null;

  @Column("int", { name: "biz_account_id", nullable: true })
  bizAccountId: number | null;

  @Column("bit", { name: "enabled", nullable: true, default: () => "'b'1''" })
  enabled: boolean | null;
}
